package com.example.jobback.mapper;

import com.example.jobback.po.Recruiter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName: RecruiterMapper
 * @Description: 招聘者mapper
 * @Author: lhb
 * @Date: 2025/5/14
 */

@Mapper
public interface RecruiterMapper {
    Recruiter getRecruiterByUserId(Long userId);

    int register(Recruiter recruiter);

    Long getRecruiterNumByCompanyId(Long companyId);

    List<Recruiter> getRecruiters();

    List<Recruiter> getRecruiterByUserIds(@Param("userIds") List<Long> userIds);

    List<Recruiter> getRecruitersByCompanyId(@Param("companyId")Long companyId);

    void deleteRecruiterById(@Param("userId") Long deleteUserId);
}
